﻿using System.Collections.Generic;
using Microsoft.Practices.Unity;
using SGDemo.OA.Entity;
using SGDemo.OA.Component;
using SGDemo.OA.Service.Interface;

namespace SGDemo.OA.Service
{
    /// <summary>
    /// File: PADCategoryService.cs 服务类
    /// </summary>
    /// <remarks>
    /// <para>Author: "Ralph"</para>
    /// <para>Date: "2012-11-10"</para>
    /// <para>Version: "V1.0"</para>
    /// <para>Copyright: "神冠软件"</para>
    /// </remarks>
    public partial class OAService : IOAService
    {
        [Dependency]
        public PADCategoryBLL PADCategoryBLL
        { get; set; }

        public bool PADCategory_Add(PADCategoryENT ent)
        {
            return this.PADCategoryBLL.PADCategory_Add(ent);
        }

        public bool PADCategory_Delete(string keyid)
        {
            return this.PADCategoryBLL.PADCategory_Delete(keyid);
        }

        public bool PADCategory_Update(PADCategoryENT ent)
        {
            return this.PADCategoryBLL.PADCategory_Update(ent);
        }

        public PADCategoryENT PADCategory_GetByKeyid(string keyid)
        {
            return this.PADCategoryBLL.PADCategory_GetByKeyid(keyid);
        }

        public List<PADCategoryENT> PADCategory_PagingGet(int startRecord, int maxRecords, string sortColumns, string filterConditions)
        {
            return this.PADCategoryBLL.PADCategory_PagingGet(startRecord, maxRecords, sortColumns, filterConditions);
        }

        public int PADCategory_PagingGetCount(string filterConditions)
        {
            return this.PADCategoryBLL.PADCategory_PagingGetCount(filterConditions);
        }
    }
}

